package com.naiterui.ehp.bs.cms.modules.oms.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.naiterui.ehp.bs.cms.common.vo.PageParamsVO;
import com.naiterui.ehp.bs.cms.common.vo.PageVO;
import com.naiterui.ehp.bs.cms.modules.oms.entity.Order;
import com.naiterui.ehp.bs.cms.modules.oms.vo.OrderVO;
import com.naiterui.ehp.bs.cms.modules.oms.vo.RefundSelectPayOrder;
import com.naiterui.ehp.bs.cms.modules.oms.vo.StatisticalVO;
import java.io.IOException;
import java.util.List;

public interface IOrderService extends IService<Order> {

  PageVO<OrderVO> queryPage(PageParamsVO pageParamsVO, OrderVO order);

  List<StatisticalVO> getStatisticalVO(PageParamsVO pageParamsVO, OrderVO order);

  OrderVO getOrderDetails(Long orderId);

  List<OrderVO> getByPatientId(Long pateintId);

  List<RefundSelectPayOrder> getPayOrder(String orderSn);

  /**
   * 订单导出
   */
  byte[] export(PageParamsVO pageParamsVO, OrderVO order) throws IOException;
}
